import request from '@/utils/request'
import { book, ResponseData } from './type'

enum API {
  // 预约会议室接口
  BOOKROOM_URL = 'book/room',
  // 删除预约
  DELETEBOOK_URL = 'book/deleteBook',
  // book/getAllRoomByTime根据时间查找当前会议室使用情况
  GETALLROOMTIME_URL = 'book/getAllRoomByTime',
}

export const reqAddBookData = (data: book) =>
  request.post<any, ResponseData>(API.BOOKROOM_URL, data)
